package com.linkage.usercenter.pojo.baseDO;

import java.io.Serializable;
import java.util.Date;

/* * 
 * @describe:  类型描述
 * @author shaofeng.cheng 数据表公共字段
 * @title 
 * @date 2020/4/19 15:29
 * @param  
 * @return 
 * @version: V1.0
 */
public abstract class TableBaseBO implements Serializable {
    /**
     * 自增长ID
     */
    protected Integer id;
  
    /**
     * 创建人代码
     */
    protected String createCode;

    /**
     * 创建时间
     */
    protected Date createDate;

    /**
     * 修改人代码
     */
    protected String updateCode;

    /**
     * 修改时间
     */
    protected Date updateDate;

    protected static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    
    public String getCreateCode() {
        return createCode;
    }

    public void setCreateCode(String createCode) {
        this.createCode = createCode == null ? null : createCode.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateCode() {
        return updateCode;
    }

    public void setUpdateCode(String updateCode) {
        this.updateCode = updateCode == null ? null : updateCode.trim();
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", createCode=").append(createCode);
        sb.append(", createDate=").append(createDate);
        sb.append(", updateCode=").append(updateCode);
        sb.append(", updateDate=").append(updateDate);
        sb.append("]");
        return sb.toString();
    }
}